'use strict';

const Service = require('egg').Service;

class userService extends Service {
  async userList() {
    const { ctx } = this;
    const taskList = await ctx.model.User.findAll({
      order: [['sort', 'desc']],
    });
    return taskList;
  }
}

module.exports = userService;